Conversation
|
@JoshRosen Since the following public method in def redshiftFile(path: String, columns: Seq[String]): DataFrameI added a new version of def redshiftFile(path: String, schema: StructType): DataFrameto replace the deprecated one: def redshiftFile(path: String, schema: String): DataFrameThese methods are used to read data files unloaded from a Redshift table using |
Current coverage is 89.07%@@ master #239 diff @@
==========================================
Files 13 12 -1
Lines 669 641 -28
Methods 589 562 -27
Messages 0 0
Branches 80 79 -1
==========================================
- Hits 596 571 -25
+ Misses 73 70 -3
Partials 0 0
|
|
@liancheng, in the long run I think it would make sense to open up more modularized APIs to the Regarding the individual deprecations:
I don't want to overengineer things now, though, so I'd be fine with rebasing and merging these changes as-is and dealing with feature-gaps / requests in followups or in a followup to the 2.x release. |
|
Yeah, so TL;DR: rebase this and I'll merge it. |
54000ec to
77c2838
Compare
|
@JoshRosen Thanks! Having a Java version of |
|
LGTM so I'm going to merge this to master. Thanks @liancheng! |
This PR branch is based on #221 and contains its changes. For easier review, please refer to liancheng#1.
This PR cleans up all the deprecated APIs in 1.x:
Parameters.overwriteUsers should use
SaveModeinstead.SchemaParserRemoved since the only API method uses this class is removed.
RedshiftDataFrame.saveAsRedshiftTable(parameters: Map[String, String])Users should use
DataFrameWritermethods instead.RedshiftContext.redshiftTable(parameters: Map[String, String])Users should use
DataFrameReadermethods instead.RedshiftContext.redshiftFile(path: String, schema: String)Removed since we'd like to stop using string schema parsing. The following API method is added to replace it:
Fixes #66.